﻿
using System;
using System.Drawing;
using System.Windows.Forms;
using n_LocatePanel;

namespace n_ScreenSetForm
{
/// <summary>
/// Description of LocateForm.
/// </summary>
public partial class ScreenSetForm : Form
{
	public int Data;
	
	public ScreenSetForm()
	{
		//
		// The InitializeComponent() call is required for Windows Forms designer support.
		//
		InitializeComponent();
		
		comboBox1.SelectedIndex = n_MainSystemData.SystemData.ScreenKey;
	}
	
	//运行
	public void Run()
	{
		this.Visible = true;
	}
	
	void LocateFormFormClosing(object sender, FormClosingEventArgs e)
	{
		this.Visible = false;
		e.Cancel = true;
	}
	
	void Button1Click(object sender, EventArgs e)
	{
		this.Visible = false;
		System.Threading.Thread.Sleep( 1000 );
		
		if( G.ScreenBox == null ) {
			G.ScreenBox = new n_ScreenForm.ScreenForm();
		}
		G.ScreenBox.Run();
	}
	
	void ComboBox1SelectedIndexChanged(object sender, EventArgs e)
	{
		n_MainSystemData.SystemData.ScreenKey = comboBox1.SelectedIndex;
		n_MainSystemData.SystemData.isChanged = true;
		
		
	}
}
}

